import org.junit.jupiter.api.Test;

public class test1 {
    @Test
    public void t1(){
        String t="fsdfd.jpg";
        String s = t.substring(t.lastIndexOf("."));
        System.out.println(s);
    }
}
